#define _CRT_SECURE_NO_WARNINGS 1
#include"queue.h"
#include<stdio.h>
void test() {
	Queue q;
	QueueInit(&q);
	QueuePush(&q,1);
	QueuePush(&q,2);
	QueuePush(&q,3);
	QueuePush(&q,4);
	QueuePush(&q,5);
	printf("queue front is %d,queue rear is %d\n", QueueFront(&q), QueueBack(&q));
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	printf("queue front is %d,queue rear is %d\n", QueueFront(&q), QueueBack(&q));
	QueuePush(&q, 6);
	QueuePush(&q, 7);
	QueuePush(&q, 8);
	printf("queue size is %d\n", QueueSize(&q));
	printf("QueueEmpty=%d(1=empty)\n", QueueEmpty(&q));
	QueueDestroy(&q);
	printf("QueueEmpty=%d(1=empty)\n", QueueEmpty(&q));
}
int main() {
	test();

	return 0;
}